﻿//************************************************************************************************
// Copyright © 2012 Steven M. Cohn. All Rights Reserved.
//
// Facility:	Microsoft Development Environment 2012  Version 11.0.50727.1
// Environment:	Microsoft .NET Framework 4.5            Version v4.0.30319
//
// Description: The base class of Cookie, describes a single record in the cookie file
//
// Revision History:
// -Who--------------- -When---------- -What------------------------------------------------------
// Steven M. Cohn		20-Nov-2012		New
//************************************************************************************************

namespace CookieChipper
{
	using System;


	/// <summary>
	/// The base class of Cookie, describes a single record in the cookie file.
	/// </summary>
	
	internal class Chip
	{

		/// <summary>
		/// 
		/// </summary>
		/// <param name="name"></param>

		public Chip (string name)
		{
			this.Name = name;
		}

	
		/// <summary>
		/// Gets or sets the domain for the record.
		/// </summary>

		public string Domain { get; set; }


		/// <summary>
		/// Gets or sets the record flags.
		/// </summary>

		public ChipFlags Flags { get; set; }


		/// <summary>
		/// Gets or sets the name of the record.
		/// </summary>

		public string Name { get; private set; }


		/// <summary>
		/// Gets or sets the state of this record.
		/// </summary>

		public CookieState State { get; set; }


		/// <summary>
		/// Gets or sets the value of the record.
		/// </summary>

		public string Value { get; set; }


		/// <summary>
		/// Gets or sets the created date and time of the record.
		/// </summary>

		public DateTime Created { get; set; }


		/// <summary>
		/// Gets or sets the expiration date and time of the record.
		/// </summary>

		public DateTime Expires { get; set; }
	}
}
